package cn.yeziji.forum.common.enums.status;

import cn.yeziji.forum.common.enums.status.code.PayCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 支付状态
 *
 * @author hwy
 * @since 2023/07/28 23:48
 **/
@Getter
@AllArgsConstructor
public enum PayStatus {
  PAY_WAIT(PayCode.PAY_WAIT, "等待支付"),
  PAYING(PayCode.PAYING, "支付中"),
  PAY_SUCCESS(PayCode.PAY_SUCCESS, "支付完成"),
  PAY_FAILED(PayCode.PAY_FAILED, "支付失败"),
  PAY_REVIEW(PayCode.PAY_REVIEW, "支付复核"),
  PAY_REVIEW_SUCCESS(PayCode.PAY_REVIEW_SUCCESS, "复核成功"),
  PAY_REVIEW_FAILED(PayCode.PAY_REVIEW_FAILED, "复核失败"),
  USER_NO_SUPPORT_PAY(PayCode.USER_NO_SUPPORT_PAY, "用户不支持支付"),
  USER_NO_SUPPORT_WECHAT_PAY(PayCode.USER_NO_SUPPORT_WECHAT_PAY, "用户不支持微信支付"),
  NO_SUPPORT_PAY_TYPE(PayCode.USER_NO_SUPPORT_PAY, "暂不支持指定支付类型"),
  ;
  final int code;
  final String msg;
}
